package com.cn.algorithm02.class10;

public class Node {
    public String value;
    public Node left;
    public Node right;

    public Node(String value, Node left, Node right) {
        this.value = value;
        this.left = left;
        this.right = right;
    }

    @Override
    public String toString() {

        return "Nodea{" +
                "value=" + value +
                ", left=" + (left == null ? "null" : left.value) +
                ", right=" + (right == null ? "null" : right.value) +
                '}';
    }
}
